<?php
$page_title="Manage VOIP - List";
	include("includes/header.php");
?>
<?
$query="select * from bkitc_voip where rec_status=1 ";
$voipInfo = qry_data($query." order by req_submitted_date");
?>
<table width="100%" >
	<tr>
		<td valign="top">
		<div class="fleft">
		<ul class="subMenu">
		<li><a href="edit_voip.php?mode=add" >Add New VoIP</a></li>
		
		</ul>
		</div>
	<table   class="table_panel" width="100%"  cellspacing="0" cellpadding="4">
	<tr  align="left">
	<th width="5">S.No</th>

	<th>Name</th>
	<th>Email</th>
	<th>Phone No</th>

	<th >IT Contact </th>
	<th>Status</th>
	<th>VoIP No</th>
	<th>Member Id</th>
	<th >Requested Date</th>
	<th >Last Updated</th>
	<th width="71px">Edit/Delete</th>
	</tr>
	<? foreach($voipInfo as $i=>$voip) {?>

	<tr <?if($i%2==0) echo 'class="white_bg"'; else echo 'class="grey_bg"' ?>>
	<td><?=$i+1;?></td>
	
	<td><?=$voip["req_name"];?></td>
	<td><?=$voip["req_email_id"];?></td>
	<td><?=$voip["req_phone_no"];?></td>
	
	<td><?=$voip["req_it_contact"];?></td>
	<td><?=$voip_status[(int)$voip["req_status"]];?></td>
	<td><?=$voip["req_voip_no"];?></td>

	<td><?=$voip["req_member_id"]>0?"BKITC".number_pad($voip["req_member_id"],5):""?></td>
	<td><?=$voip["req_submitted_date"]?></td>
	<td><?=$voip["last_updated"]?></td>
	
	<td>
	
	<a href="edit_voip.php?mode=edit&rid=<?=$voip["req_id"];?>">Edit</a> | 

		<a  href="javascript:if(confirm('Are you sure to delete this VoIP request?')) location.href='edit_voip.php?mode=del&rid=<?=$voip["req_id"];?>'";>Delete</a> 
	
	</td>
	</tr>
	
	<? } ?>
	</table>
	
	</td>
	</tr>
	
	</table>

<?php include("includes/footer.php"); ?>

